package com.web.entity;

import java.util.List;

public class PageVO {
    private int current;       // 当前页码
    private int pageSize;      // 每页大小
    private int total;         // 总记录数
    private List<?> data;      // 当前页的数据列表

    public PageVO(int current, int pageSize, int total, List<?> data) {
        this.current = current;
        this.pageSize = pageSize;
        this.total = total;
        this.data = data;
    }

    // Getter 和 Setter 方法
    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<?> getData() {
        return data;
    }

    public void setData(List<?> data) {
        this.data = data;
    }
}
